package com.lucweb.entity;

import javax.persistence.*;

@Entity
@Table(name = "base_dict", schema = "firesystem", catalog = "")
public class BaseDict {
	private String dict_id;
	private String dict_type_code;
	private String dict_type_name;
	private String dict_item_name;
	private String dict_item_code;
	private String dict_memo;
	private String dict_sort;
	private String dict_enable;

	@Id
	@Column(name = "dict_id", nullable = false, length = 255)
	public String getDict_id() {
		return dict_id;
	}

	public void setDict_id(String dict_id) {
		this.dict_id = dict_id;
	}

	@Basic
	@Column(name = "dict_type_code", nullable = true, length = 255)
	public String getDict_type_code() {
		return dict_type_code;
	}

	public void setDict_type_code(String dict_type_code) {
		this.dict_type_code = dict_type_code;
	}

	@Basic
	@Column(name = "dict_type_name", nullable = true, length = 255)
	public String getDict_type_name() {
		return dict_type_name;
	}

	public void setDict_type_name(String dict_type_name) {
		this.dict_type_name = dict_type_name;
	}

	@Basic
	@Column(name = "dict_item_name", nullable = true, length = 255)
	public String getDict_item_name() {
		return dict_item_name;
	}

	public void setDict_item_name(String dict_item_name) {
		this.dict_item_name = dict_item_name;
	}

	@Basic
	@Column(name = "dict_item_code", nullable = true, length = 255)
	public String getDict_item_code() {
		return dict_item_code;
	}

	public void setDict_item_code(String dict_item_code) {
		this.dict_item_code = dict_item_code;
	}

	@Basic
	@Column(name = "dict_memo", nullable = true, length = 255)
	public String getDict_memo() {
		return dict_memo;
	}

	public void setDict_memo(String dict_memo) {
		this.dict_memo = dict_memo;
	}

	@Basic
	@Column(name = "dict_sort", nullable = true, length = 255)
	public String getDict_sort() {
		return dict_sort;
	}

	public void setDict_sort(String dict_sort) {
		this.dict_sort = dict_sort;
	}

	@Basic
	@Column(name = "dict_enable", nullable = true, length = 255)
	public String getDict_enable() {
		return dict_enable;
	}

	public void setDict_enable(String dict_enable) {
		this.dict_enable = dict_enable;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		BaseDict baseDict = (BaseDict) o;

		if (dict_id != null ? !dict_id.equals(baseDict.dict_id) : baseDict.dict_id != null) return false;
		if (dict_type_code != null ? !dict_type_code.equals(baseDict.dict_type_code) : baseDict.dict_type_code != null)
			return false;
		if (dict_type_name != null ? !dict_type_name.equals(baseDict.dict_type_name) : baseDict.dict_type_name != null)
			return false;
		if (dict_item_name != null ? !dict_item_name.equals(baseDict.dict_item_name) : baseDict.dict_item_name != null)
			return false;
		if (dict_item_code != null ? !dict_item_code.equals(baseDict.dict_item_code) : baseDict.dict_item_code != null)
			return false;
		if (dict_memo != null ? !dict_memo.equals(baseDict.dict_memo) : baseDict.dict_memo != null) return false;
		if (dict_sort != null ? !dict_sort.equals(baseDict.dict_sort) : baseDict.dict_sort != null) return false;
		if (dict_enable != null ? !dict_enable.equals(baseDict.dict_enable) : baseDict.dict_enable != null)
			return false;

		return true;
	}

	@Override
	public String toString() {
		return "BaseDict{" +
				"dict_id='" + dict_id + '\'' +
				", dict_type_code='" + dict_type_code + '\'' +
				", dict_type_name='" + dict_type_name + '\'' +
				", dict_item_name='" + dict_item_name + '\'' +
				", dict_item_code='" + dict_item_code + '\'' +
				", dict_memo='" + dict_memo + '\'' +
				", dict_sort='" + dict_sort + '\'' +
				", dict_enable='" + dict_enable + '\'' +
				'}';
	}

	@Override
	public int hashCode() {
		int result = dict_id != null ? dict_id.hashCode() : 0;
		result = 31 * result + (dict_type_code != null ? dict_type_code.hashCode() : 0);
		result = 31 * result + (dict_type_name != null ? dict_type_name.hashCode() : 0);
		result = 31 * result + (dict_item_name != null ? dict_item_name.hashCode() : 0);
		result = 31 * result + (dict_item_code != null ? dict_item_code.hashCode() : 0);
		result = 31 * result + (dict_memo != null ? dict_memo.hashCode() : 0);
		result = 31 * result + (dict_sort != null ? dict_sort.hashCode() : 0);
		result = 31 * result + (dict_enable != null ? dict_enable.hashCode() : 0);
		return result;
	}
}
